package pers.dawnyang;

import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import lombok.extern.log4j.Log4j2;

/**
 * 
 * @author dawn
 * @date 2021/03/30
 */
@EnableAsync
@ComponentScan("pers.dawnyang")
@ServletComponentScan
@Log4j2
public class Application {

  protected static ApplicationContext context;

  public static ApplicationContext getContext() {
    return context;
  }

  protected static void ready() {
    /* 配置文件密码加密盐 */
    System.setProperty("jasypt.encryptor.password", "dawnyang");
  }

}
